{% extends '_base.html' %}
{% block content %}
<p>
	<strong>Instructions</strong>
	<br>
	{% if error %}
	<div class= "alert alert-info">
		{{ error }}
		Add New Result
	</div>
	{% else %}
	Edit the Result
	{% endif %}
</p>
<form method="post" action="result" class="well">
	<label for='name'>Name</label>
	<input type="text" name='name' class="input-large" placeholder="Name">
	<label for='reg_num'>Registration Number</label>
	<input type="text" name='reg_num' class="input-large" placeholder="Registration Number" value={{ regnum }}>
	<label for='combo'>Combination</label>
	<select name='combo'>
		{% for x in combination %} <option selected="{% if combo==x %}True{% endif %}" value="2010">2010</option>
		{% endfor %}
	</select>
	{% for x in range(4) %} <label for='score {{ x }}'>score{{ x }}</label>
	<input type="text" name='score {{ x }}' class="input-large" placeholder="score {{ x }}" value={{ score[x] }}>
	{% endfor %}
	<button type="submit" class="btn btn-primary btn-large">
		Submit
	</button>
</form>
{% endblock content %} 